//
//  KeyboardModule.m
//  ZeroYearEducation
//
//  Created by leoking870 on 2019/11/19.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import "KeyboardModule.h"
#import <UIKit/UIKit.h>
@implementation KeyboardModule
@synthesize bridge = _bridge;
RCT_EXPORT_MODULE()
- (dispatch_queue_t)methodQueue
{
    return dispatch_get_main_queue();
}

RCT_EXPORT_METHOD(isKeyboardShow:(RCTResponseSenderBlock)completion){
  dispatch_async(dispatch_get_main_queue(), ^{
    NSString* windowName = NSStringFromClass([[UIApplication sharedApplication].windows lastObject].class);
    completion(@[@([windowName containsString:@"Keyboard"])]);
  });
}

@end
